OPC Studio User's Guide and Reference
Write Group of Values on Custom Event
Concepts > OPC Data Client Concepts > OPC Data Client Development Models > Live Binding Model > Live Binding Model for OPC Data (Classic and UA) > Typical Binding Scenarios > Write Group of Values on Custom Event

In this scenario, multiple property values are gathered and written to their associated OPC items in a single operation, linked to a specified event – for example, a button click.

How to configure this feature for OPC-DA:

On a PointBinder, edit the BindingGroups collection, "Add" a new binding group, set its AutoSubscribe property to False, and set its WriteEventSource.SourceComponent to the button that should invoke the Write.

On each of the value controls involved, use "Bind to Point" command and select the OPC item you want to write. Then, use the "Edit Live Bindings" command, and for the BindingOperations options, select only "Write". Also, set the BindingGroup property of the item binding to the binding group you have created earlier. The Write operation will be executed for all item bindings in this group when the button is clicked.

How to configure this feature for OPC-UA:

On a PointBinder, edit the BindingGroups collection, "Add" a new binding group, set its AutoSubscribe property to False, and set its WriteEventSource.SourceComponent to the button that should invoke the Write.

On each of the value controls involved, use "Bind to Point" command and select the OPC-UA node you want to write. Then, use the "Edit Live Bindings" command, and for the BindingOperations options, select only "Write". Also, set the BindingGroup property of the data binding to the binding group you have created earlier. The Write operation will be executed for all data bindings in this group when the button is clicked.

See Also